<div id="notes-container">
    <? foreach ($this->notes as $note) :?>
        <?/** @var $note Application_Model_Note */?>
        <div class="well item">
            <i title="Редактировать" class="icon-pencil" onclick="mn.getForm(<?= $note->getNoteId()?>, this)"></i>
            <a href="/notes/?id=<?= $note->getNoteType(); ?>"><span class="label <?=$note->getLabel(); ?>"><?= !isset(Application_Model_Note::$types[$note->getNoteType()]) ?: Application_Model_Note::$types[$note->getNoteType()];?></span></a>
            <?= $note->getNoteTitle() ?>
            <i title="Удалить" style="float: right;" class="icon-trash" onclick="mn.deleteNote(<?= $note->getNoteId()?>, this)"></i>
        </div>
        <? $first = false; ?>
    <? endforeach; ?>
</div>